package hotel.base.oversea.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class AspectEnums {

    @Getter
    @AllArgsConstructor
    public enum jobMethod {
        aspGetChangeMonthGoodsIdsByOneHotelId("aspGetChangeMonthGoodsIdsByOneHotelId", "主动JOB-美团方法-校验一个月指定酒店所有产品房态价格"),
        aspDealNotifyDoneSavePriceChangeData("aspDealNotifyDoneSavePriceChangeData", "主动JOB-美团方法-check完保存价格日历"),
        aspNotityModifyRoomInfo("aspNotityModifyRoomInfo", "主动JOB-携程方法-携程更新产品价格房态库存等信息根据一个酒店"),
        aspDealNotifyRoomFromJob("aspDealNotifyRoomFromJob", "JOB处理异步通知-美团方法-处理房态变更数据"),
        aspSaveDealGoodsFromJob("aspSaveDealGoodsFromJob", "JOB处理异步通知-美团方法-处理产品价格规则数据"),
        aspoperateSwitchAndMeituanOrderByOrderId("aspoperateSwitchAndMeituanOrderByOrderId", "JOB-notifyToPool-携程方法-处理订单接口");
        private final String code;
        private final String msg;

        public static String getName(String code) {
            AspectEnums.jobMethod[] businessModeEnums = values();
            for (AspectEnums.jobMethod v : businessModeEnums) {
                if (v.code().equals(code)) {
                    return v.msg();
                }
            }
            return null;
        }
        public String code(){
            return this.code;
        }

        public String msg(){
            return this.msg;
        }
    }
}
